package com.coocaa.ops.common.core.biz.panel.constant;

import lombok.experimental.UtilityClass;

/**
 * @author bijiahao
 * @description
 * @date 2020/6/16 17:26
 */
@UtilityClass
public class PanelTypeConstants {
    /**
     * 常规板块
     */
    public static final String NORMAL = "normal";
    /**
     * 分组板块
     */
    public static final String GROUP = "group";
    /**
     * 标记板块
     */
    public static final String MARK = "mark";
    /**
     * 智能推荐板块
     */
    public static final String REC_STREAM = "recStream";
    /**
     * 插件板块
     */
    public static final String PLUGIN = "plugin";

    public static boolean isCanMergePoster(String parentType) {
        return NORMAL.equals(parentType)
                || GROUP.equals(parentType)
                ;
    }


    public static boolean isNormal(String panelType) {
        return NORMAL.equals(panelType);
    }

    public static boolean isGroup(String panelType) {
        return GROUP.equals(panelType);
    }

    public static boolean isMark(String panelType) {
        return MARK.equals(panelType);
    }

    public static boolean isRecStream(String panelType) {
        return REC_STREAM.equals(panelType);
    }

    public static boolean isPlugin(String panelType) {
        return PLUGIN.equals(panelType);
    }
}
